//
//  UPPersonalAddressCustomView.h
//  Uang Pasti
//
//  Created by 李永彬 on 2025/8/27.
//

#import <UIKit/UIKit.h>
#import "UPAddressPickerView.h"

NS_ASSUME_NONNULL_BEGIN

@protocol UPPersonalAddressCustomViewDelegate <NSObject>

@optional
- (void)addressCustomView:(UPAddressPickerView *)picker didSelectItem:(UPDataItem *)item atLevel:(NSInteger)level;
- (void)addressCustomView:(UPAddressPickerView *)picker didCompleteSelection:(NSArray<UPDataItem *> *)path;
- (void)addressCustomView:(UPAddressPickerView *)picker didClickConfirmButton:(NSArray<UPDataItem *> *)path;

@end

@interface UPPersonalAddressCustomView : UIView<UPAddressPickerDelegate>

@property (nonatomic, weak) id<UPPersonalAddressCustomViewDelegate> delegate;
@property (nonatomic, strong) UIImageView *containerImageView;
@property (nonatomic, strong) UPAddressPickerView *addressPicker;
@property (nonatomic, strong) UILabel *titleLabel;

@end

NS_ASSUME_NONNULL_END
